package com.gl.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 游戏化学习记录表
 * </p>
 *
 * @author 晚风
 * @since 2024-12-25
 */
@TableName("rankings")
@ApiModel(value = "Rankings对象", description = "游戏化学习记录表")
public class Rankings implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("记录唯一标识，主键，自增")
    @TableId(value = "record_id", type = IdType.AUTO)
    private Integer recordId;

    @ApiModelProperty("用户唯一标识，外键，关联用户表")
    private Integer userId;

    @ApiModelProperty("游戏类型，如单词跟读、单词拼写等")
    private String gameType;

    @ApiModelProperty("游戏得分，记录用户在该游戏中的表现")
    private Integer score;

    @ApiModelProperty("游戏完成时间")
    private LocalDateTime completedDate;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;


    public Integer getRecordId() {
        return recordId;
    }

    public void setRecordId(Integer recordId) {
        this.recordId = recordId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getGameType() {
        return gameType;
    }

    public void setGameType(String gameType) {
        this.gameType = gameType;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public LocalDateTime getCompletedDate() {
        return completedDate;
    }

    public void setCompletedDate(LocalDateTime completedDate) {
        this.completedDate = completedDate;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Rankings{" +
        "recordId=" + recordId +
        ", userId=" + userId +
        ", gameType=" + gameType +
        ", score=" + score +
        ", completedDate=" + completedDate +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
